<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{    
    protected $guarded=[];
    function category(){
        return $this->belongsTo('App\Category');
    }
    function comment(){
        return $this->hasMany('App\Comment');
    }
}
